import com.adobe.cairngorm.control.CairngormEventDispatcher;

import net.optix.ip.events.AssignToPractitionerEvent;
import net.optix.ip.events.GetPractitionersEvent;
import net.optix.ip.model.ModelLocator;

[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private function assignToPractitioner():void
{
	var practitionerID:int	=	practitioners.selectedItem.practitionerID;
	var event:AssignToPractitionerEvent	=	
		new AssignToPractitionerEvent(model.currentInvention.inventionID,practitionerID);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(event);
}

private function getPractitioners():void
{
	var event:GetPractitionersEvent	=	new GetPractitionersEvent(model.firm.firmID);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(event);
}
